﻿@namespace MudBlazor.UnitTests.TestComponents

<MudDataGrid Items="@_items" ReadOnly="false" EditMode="@DataGridEditMode.Inline">
    <Columns>
        <Column T="Model" Field="@nameof(Model.Name)" />
        <Column T="Model" Field="@nameof(Model.Age)" />
    </Columns>
</MudDataGrid>

@code {
    private IEnumerable<Model> _items = new List<Model>()
    {
        new Model("John", 45), 
        new Model("Johanna", 23), 
        new Model("Steve", 32)
    };

    public record Model(string Name, int Age);
}
